package com.usian.user.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.usian.common.Result;
import com.usian.entity.Cars;
import com.usian.entity.Users;
import com.usian.vo.RentalDetailsVo;
import com.usian.vo.ReserveVo;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author author
 * @since 2025-01-15
 */
public interface IUsersService extends IService<Users> {

    Result<String> getCode(String phone);

    Result<Users> login(String phone, String code);

    Result<RentalDetailsVo> rentalDetails(Integer userId);

    List<ReserveVo> findAllBooked(Integer userId);

    List<ReserveVo> findAllHistory(Integer userId);

    List<ReserveVo> findAllList(Integer userId);

    ReserveVo findReservedCar(Integer userId, Integer carId);

    List<ReserveVo> findAllzhifu(Integer userId);


    ReserveVo findzhifuCar(Integer userId, Integer carId);
}
